<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<meta charset="UTF-8">
<script type="text/javascript">
    function check_input(form)
    {
        if(form.reserved_info.value=="")
        {
            alert('请输入预留信息!');
            form.reserved_info.select();
            return(false);
        }
        return(true);
    }
</script>
<?php
 include("top.php");
?>
<table height="500" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="350" align="center" valign="top" bgcolor="#F5F5F5"><?php include("left.php");?></td>
    <td valign="top" bgcolor="#FFFFFF"><table width="557"  height="15" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td  bgcolor="#B0E0E6">
              <table width="300" height="100" border="0" align="center" cellpadding="0" cellspacing="1">
                <form name="form2" method="post" action="showmemberspwd.php" onSubmit="return check_input(this)">
                <?php
                $conn = prepare();

                $name=$_POST['username'];
                $sql = exectue_sql_statement($conn, "select * from Members where members_name='$name'");
                $info=sqlsrv_fetch_array($sql);
                if($info==false) {
                    echo "<script>alert('无此用户!');history.back();</script>";
                    exit;
                }
                ?>
                <tr bgcolor="#B0E0E6">
                  <td height="25" colspan="2"><div align="center">找回密码</div></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td height="25"><div align="center">&nbsp;预留信息：
                          <input type="text" name="reserved_info" size="20" maxlength="20">
                          <input type="hidden" name="username" value="<?php echo $name;?>">
                      </div></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td height="25" colspan="2"><div align="center"><input type="submit" value="确定"></div></td>
                </tr>
                </form>
              </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table></td>
  </tr>
</table>
<?php
 include("bottom.php");
?>